x86/perfc: add hypercall performance counters for hvm, correct pv
authorJuergen Gross <jgross@suse.com>
Tue, 14 Dec 2021 08:49:23 +0000 (09:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Dec 2021 08:49:23 +0000 (09:49 +0100)
commit668dd44902bbaf52f8e7214e0da060b6ec962e88
tree0a08fac6beaef8b299db04cebfcd4b276977ac8e
parent7b99e7258559c9caa235d9faf323b22c68e4a581
x86/perfc: add hypercall performance counters for hvm, correct pv

The HVM hypercall handler is missing incrementing the per hypercall
counters. Add that.

The counters for PV are handled wrong, as they are not using
perf_incra() with the number of the hypercall as index, but are
incrementing the first hypercall entry (set_trap_table) for each
hypercall. Fix that.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/pv/hypercall.c